#! /usr/bin/python

import socket,traceback
host = ''
port = 50000


sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
sock.bind((host,port))
sock.listen(1)

client , address = sock.accept()

while True:
	data = raw_input("Server :")
#data = "service"
	data += "\n"
	client.sendall(data)
	print "send...ok"
client.close()
